package com.springboot.seckill.controller.dto;

import javax.validation.constraints.NotNull;

/**
 * @Author: HuangDekai
 * @Date: 2022/3/26 15:21
 * @Version: 1.0
 * @since: jdk11
 */
public class CreateOrderDTO {
    @NotNull
    private Integer itemId;
    @NotNull
    private Integer amount;

    private Integer promoId;

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getPromoId() {
        return promoId;
    }

    public void setPromoId(Integer promoId) {
        this.promoId = promoId;
    }

    @Override
    public String toString() {
        return "CreateOrderDTO{" +
                "itemId=" + itemId +
                ", amount=" + amount +
                ", promoId=" + promoId +
                '}';
    }
}
